Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapshot and batching removal, recovery transactions #31

Merged
merged 1 commit into from
Aug 25, 2017

Conversation

SamiHiltunen
Copy link
Contributor

  • Removes snapshotting and batching from the storage. These lead
    to rather high memory usage in some cases and they can be later
    reimplemented as an additional layer if necessary. Tuning
    LevelDB configuration seems to give enough performance.

  • Adds MarkRecovered method on the storage interface. This is used
    to signal that recovery has finished and that the processor/view
    can expect a lower message rate. Default storage uses this to
    disable LevelDB compaction via a transaction during recovery and
    re-enabling it afterwards.

  • Removes StoragePath option. StorageBuilder now takes a complete
    storage path. Two helpers functions were added for generating
    default storage paths for views and processors.

    closes Remove snapshot from storage #30

* Removes snapshotting and batching from the storage. These lead
  to rather high memory usage in some cases and they can be later
  reimplemented as an additional layer if necessary. Tuning
  LevelDB configuration seems to give enough performance.

* Adds MarkRecovered method on the storage interface. This is used
  to signal that recovery has finished and that the processor/view
  can expect a lower message rate. Default storage uses this to
  disable LevelDB compaction via a transaction during recovery and
  re-enabling it afterwards.

* Removes StoragePath option. StorageBuilder now takes a complete
  storage path. Two helpers functions were added for generating
  default storage paths for views and processors.
Copy link
Collaborator

@db7 db7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, looks cleaner.

Copy link
Contributor

@frairon frairon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super awesome, looks good!

@SamiHiltunen
Copy link
Contributor Author

Thanks, merging! 👍

@SamiHiltunen SamiHiltunen merged commit 6849029 into master Aug 25, 2017
@db7 db7 deleted the snapshot-removal branch September 12, 2017 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove snapshot from storage
3 participants